﻿using System;
using System.Collections.Generic;

using System.Text;
using Estimate.Common.DBFieldTypes;

namespace Estimate.Common.Entity
{
    /// <summary>
    /// 温度实况资料。 TeapRealEntity表记录
    /// </summary>
    public class TempRealEntity : ICloneable
    {
        public int Id { get; set; }
        public DateTime Date { get; set; }
        public RealTempValueType Type { get; set; }
        public string Value { get; set; }

        public TempRealEntity(DateTime date, RealTempValueType type)
        {
            Date = date;
            this.Type = type;
            Value = "";
        }

        public TempRealEntity(DateTime date, RealTempValueType type, string value)
            : this(date, type)
        {
            Value = value;
        }

        public object Clone()
        {
            return new TempRealEntity(Date, Type, Value);
        }
    }
}
